<div id="view-content">
    <p>Bienvenue sur votre compte <?php echo $this->escape($this->username)?></p>
    
    <h2><?php echo Zend_Registry::get('Zend_Translate')->_('Change my information') ?></h2>
    <p style="color: red"><?php echo $this->formMessage?></p>
    <div>
        <?php echo $this->formUsername;?>
    </div>
    <div>
        <?php echo $this->formPassword;?>
    </div>
</div>

<script type="text/javascript" src="<?php echo $this->baseUrl ?>/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/js/zendtremplin_functions.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        var login = $("#login");
        login.keyup(function() {
            $.ajax({
                type: "POST",
                url: '/inscription/index/checklogin',
                data: 'login='+login.val(),
                success: function(data) {
                    if(data!=null) {
                        ZendTremplin_addErrorAfter('login','error_login',data);
                    }
                }
            });
        });
    });
</script>

